<?php
namespace App\Models;


class Athletes
{

    protected $data = [
        '1' => [
            'id' => 1,
            'name' => 'Lin Dan',
            'status' => '37-year-old professional badminton player.',
            'description' => 'Regarded as one of the greatest badminton players of all time, Lin Dan is a Chinese legend known for his technical brilliance, powerful smashes, and incredible footwork.',
            'features' => 'Short stature, with a strong, athletic build and short black hair.',
            'hobbies' => 'Badminton, playing video games, and spending time with his family.',
            'ability' => 'Exceptional smashes, footwork, and court awareness. Highly adaptable to different playstyles.',
            'link' => 'https://www.lindan.com',
            'image' => 'lindan.jpg',
        ],

        '2' => [
            'id' => 2,
            'name' => 'Lee Chong Wei',
            'status' => '39-year-old retired professional badminton player.',
            'description' => 'Known for his incredible speed and agility, Lee Chong Wei is a Malaysian badminton player who dominated the sport for over a decade with his precision and consistency.',
            'features' => 'Tall, lean physique with short black hair.',
            'hobbies' => 'Badminton, fitness, and philanthropy.',
            'ability' => 'Exceptional speed, footwork, and sharp net play. Known for his mental toughness and tactical intelligence.',
            'link' => 'https://www.leechongwei.com',
            'image' => 'leechongwei.jpg',
        ],

        '3' => [
            'id' => 3,
            'name' => 'Victor Axelsen',
            'status' => '32-year-old Danish badminton player.',
            'description' => 'Victor Axelsen is a highly skilled and powerful player, known for his long reach, strong smashes, and intelligent play.',
            'features' => 'Tall, athletic build, with a blonde buzz-cut hairstyle.',
            'hobbies' => 'Badminton, travel, and playing chess.',
            'ability' => 'Powerful smashes, strong defense, and excellent tactical play. Known for his resilience in long rallies.',
            'link' => 'https://www.victoraxelsen.com',
            'image' => 'axelsen.jpg',
        ],

        '4' => [
            'id' => 4,
            'name' => 'Chen Long',
            'status' => '32-year-old Chinese badminton player.',
            'description' => 'Chen Long is a versatile and resilient badminton player, known for his exceptional defense and stamina, making him one of the top players in the world.',
            'features' => 'Medium height, with a well-built physique and short black hair.',
            'hobbies' => 'Badminton, watching movies, and playing basketball.',
            'ability' => 'Excellent defense, court coverage, and stamina. Known for his patience in rallies and ability to outlast opponents.',
            'link' => 'https://www.chenlong.com',
            'image' => 'chenlong.jpg',
        ],

        '5' => [
            'id' => 5,
            'name' => 'Kento Momota',
            'status' => '25-year-old Japanese badminton player.',
            'description' => 'Kento Momota is known for his incredible technique, fast reflexes, and mental toughness. He is one of Japan\'s brightest badminton stars.',
            'features' => 'Short, dark hair and a lean, athletic build.',
            'hobbies' => 'Badminton, playing video games, and practicing meditation.',
            'ability' => 'Master of all-round play, with quick reflexes, sharp net play, and powerful smashes.',
            'link' => 'https://www.kentomomota.com',
            'image' => 'momota.jpg',
        ],

        '6' => [
            'id' => 6,
            'name' => 'Carolina Marin',
            'status' => '31-year-old Spanish badminton player.',
            'description' => 'Carolina Marin is a highly talented badminton player, known for her aggressive style of play, powerful smashes, and superb court coverage.',
            'features' => 'Medium height, with a fit physique and long brown hair.',
            'hobbies' => 'Badminton, fitness, and spending time with her family.',
            'ability' => 'Powerful smashes, quick reflexes, and excellent stamina. Known for her aggressive attacking style and mental strength.',
            'link' => 'https://www.carolinamarin.com',
            'image' => 'marin.jpg',
        ],

    ];

    public function findAll()
    {
        return $this->data;
    }

    public function find($id = null)
    {
        if (!empty($id) && isset($this->data[$id])) {
            return $this->data[$id];
        }
        return null;
    }

}
